<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<!--0. 先引入vue.js-->
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="box">
			<button @click="show(`Vue.js`)">显示</button>
		</div>
		<script type="text/javascript">
			new Vue({
				el: '#box',
				methods: {
					show(str) {
						console.log(str);
					}
				}
			});
		</script>
	</body>
</html>